package comitheima.a06oopextendsdemo06;

public class Manager extends Employee {
    private double bonus;

    public Manager() {

    }

    //带全部的构造方法
    //父类+子类的构造方法
    public Manager(String id, String name, int salary, double bonus) {
        super(id, name, salary);//调用父类的有参构造,把id,name,salary,bonus的值给父类
        this.bonus = bonus;//子类的特有的奖金在本类赋值
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public void word() {
        System.out.println("经理在管理其他人");
    }


}
